/*
 * GLShaderProgram.h
 *
 *  Created on: 2012/08/12
 *      Author: owner
 */

#ifndef GLSHADERPROGRAM_H_
#define GLSHADERPROGRAM_H_

#include "GLES2/gl2.h"

class GLShaderProgram {

private:
	GLuint ref;

public:
	GLShaderProgram();
	virtual ~GLShaderProgram();

	GLuint getReferenceId(){ return ref; }

	void attach( GLShader* shader );

	void link();

	void use();

	int getAttributeLocationIndex( const char* name );

	int getUniformLocationIndex( const char* name );

};

#endif /* GLSHADERPROGRAM_H_ */
